package dao

import (
	"log"
	"testhttp/datasource"
	"testhttp/model"
)

func GetUser(data string) []model.User {
	res := make([]model.User, 0)
	err := datasource.InstanceMaster().Where("user_name =?", data).Find(&res)
	if err != nil {
		log.Print("Error GetDealer():", err)
	}
	return res
}
